package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author Five Team
 * @since 2018-05-23
 */
@Data
@Accessors(chain = true)
@TableName(value = "t_task_reward", resultMap = "BaseResultMap")
public class TaskReward extends Model<TaskReward> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空 ")
    private Long taskId;
    /**
     * 一级奖励只有那种角色可以使用
     */
    private Long oneLevelRoleId;
    /**
     * 二级奖励只有那种角色可以使用
     */
    private Long twoLevelRoleId;
    /**
     * 一级奖励积分ID
     */
    private Long oneLevelIntegralId;
    /**
     * 一级奖励积分值
     */
    private BigDecimal oneLevelIntegralValue;
    /**
     * 一级奖励算力值
     */
    private Integer oneLevelCalculateValue;
    /**
     * 一级奖励算力类型
     */
    private String oneLevelCalculateType;
    /**
     * 二级奖励积分ID
     */
    private Long twoLevelIntegralId;
    /**
     * 二级奖励积分值
     */
    private BigDecimal twoLevelIntegralValue;
    /**
     * 二级奖励算力值
     */
    private Integer twoLevelCalculateValue;
    /**
     * 二级奖励算力类型
     */
    private String twoLevelCalculateType;
    private Boolean isEnable;
    private Boolean isDelete;
    private Date createDate;
    private Date updateDate;

    public Boolean getEnable() {
        return isEnable;
    }

    public void setEnable(Boolean enable) {
        isEnable = enable;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
